home *** CD-ROM | disk | FTP | other *** search
/ Champak 148 / (Vol 148) Feb 07 2012.iso / Games / pet_1328.swf / scripts / DefineButton2_123 / BUTTONCONDACTION on(keyPress Up).as < prev   
Text File  |  2012-02-07  |  331b  |  16 lines

  1. on(keyPress "<Up>"){
  2.    if(0 >= getProperty(dog, _Y))
  3.    {
  4.       setProperty("dog", _Y, 480);
  5.    }
  6.    if(!(150 >= getProperty(dog, _X) && getProperty(dog, _Y) == 480))
  7.    {
  8.       setProperty("dog", _Y, getProperty(dog, _Y) - 10);
  9.    }
  10.    setProperty("dog", _rotation, 0);
  11.    with(dog)
  12.    {
  13.       nextFrame();
  14.    }
  15. }
  16.